<%-- 
    Document   : setecForm
    Created on : Oct 20, 2013, 3:00:40 AM
    Author     : Thai Ha Cong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Combobox</h1>
        <s:select name="price" listKey="{k1, k2, k3}" listValue="{v1, v2, v3}" list="{1, 2, 3}" />
        <s:textfield name="price" />
        <h1>Set</h1>
        <form method=post action=https://api-3t.sandbox.paypal.com/nvp>
		<input type=hidden name=USER value=escape2008v8-facilitator_api1.gmail.com>
		<input type=hidden name=PWD value=1379621728>
		<input type=hidden name=SIGNATURE value=AFcWxV21C7fd0v3bYYYRCpSSRl31AR2KCX-3OhGFx0W4.bDJ6vPwhh0J>
		<input type=hidden name=VERSION value=108.0>
		<input type=hidden name=PAYMENTREQUEST_0_PAYMENTACTION value=Sale>
                
                <input type=hidden name=CURRENCYCODE value=USD>
                <input type=hidden name=PAYMENTREQUEST_0_CURRENCYCODE value=USD>
		<input name=PAYMENTREQUEST_0_AMT value=178>
                <input type=hidden name=PAYMENTREQUEST_0_ITEMAMT value=178>
                <input type=hidden name=ALLOWNOTE value=1>
                
                <input type=hidden name=L_PAYMENTREQUEST_0_QTY1 value=1>
                <input type=hidden name=L_PAYMENTREQUEST_0_AMT1 value=58>
                <input type=hidden name=L_PAYMENTREQUEST_0_NAME1 value=Item#1>
                <input type=hidden name=L_PAYMENTREQUEST_0_NUMBER1 value=ID001>
                
                <input type=hidden name=L_PAYMENTREQUEST_0_QTY0 value=2>
                <input type=hidden name=L_PAYMENTREQUEST_0_AMT0 value=60>
                <input type=hidden name=L_PAYMENTREQUEST_0_NAME0 value=Item#2>
                <input type=hidden name=L_PAYMENTREQUEST_0_NUMBER0 value=ID002>
                
                <input type=hidden name=AMT value=178>
                
		<input type=hidden name=RETURNURL value=http://localhost:8084/OnlineShopping/paymentComplete>
		<input type=hidden name=CANCELURL value=http://localhost:8084/OnlineShopping/viewShoppingCart>
		<input type=submit name=METHOD value=SetExpressCheckout>
	</form>
        
        <h1>Get</h1>
        <form method=post action=https://api-3t.sandbox.paypal.com/nvp>
		<input type=hidden name=USER value=escape2008v8-facilitator_api1.gmail.com>
		<input type=hidden name=PWD value=1379621728>
		<input type=hidden name=SIGNATURE value=AFcWxV21C7fd0v3bYYYRCpSSRl31AR2KCX-3OhGFx0W4.bDJ6vPwhh0J>
		<input type=hidden name=VERSION value=108.0>
		<input name=TOKEN value=EC-1NK66318YB717835M>
		<input type=submit name=METHOD value=GetExpressCheckoutDetails>
	</form>
        
        <h1>Do</h1>
        <form method=post action=https://api-3t.sandbox.paypal.com/nvp>
		<input type=hidden name=USER value=escape2008v8-facilitator_api1.gmail.com>
		<input type=hidden name=PWD value=1379621728>
		<input type=hidden name=SIGNATURE value=AFcWxV21C7fd0v3bYYYRCpSSRl31AR2KCX-3OhGFx0W4.bDJ6vPwhh0J>
		<input type=hidden name=VERSION value=108.0>
		<input type=hidden name=PAYMENTREQUEST_0_PAYMENTACTION value=Sale>
		<input name=PAYERID value=7AKUSARZ7SAT8>
		<input name=TOKEN value= EC%2d1NK66318YB717835M>
		<input name=PAYMENTREQUEST_0_AMT value= 19.95>
		<input type=submit name=METHOD value=DoExpressCheckoutPayment>
	</form>
    </body>
</html>
